home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_libgtop.idb / usr / freeware / include / glibtop / open.h.z / open.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  2.1 KB  |  74 lines

  1. /* Copyright (C) 1998-99 Martin Baulig
  2.    This file is part of LibGTop 1.0.
  3.  
  4.    Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
  5.  
  6.    LibGTop is free software; you can redistribute it and/or modify it
  7.    under the terms of the GNU General Public License as published by
  8.    the Free Software Foundation; either version 2 of the License,
  9.    or (at your option) any later version.
  10.  
  11.    LibGTop is distributed in the hope that it will be useful, but WITHOUT
  12.    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13.    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14.    for more details.
  15.  
  16.    You should have received a copy of the GNU General Public License
  17.    along with LibGTop; see the file COPYING. If not, write to the
  18.    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.    Boston, MA 02111-1307, USA.
  20. */
  21.  
  22. #ifndef __GLIBTOP_OPEN_H__
  23. #define __GLIBTOP_OPEN_H__
  24.  
  25. #include <glibtop.h>
  26. #include <glibtop/read.h>
  27. #include <glibtop/error.h>
  28.  
  29. BEGIN_LIBGTOP_DECLS
  30.  
  31. #define _GLIBTOP_INIT_STATE_INIT    0x10000
  32. #define _GLIBTOP_INIT_STATE_OPEN    0x20000
  33. #define _GLIBTOP_INIT_STATE_SERVER    0x40000
  34. #define _GLIBTOP_INIT_STATE_SYSDEPS    0x80000
  35.  
  36. #define GLIBTOP_INIT_NO_OPEN        1
  37. #define GLIBTOP_INIT_NO_INIT        2
  38.  
  39. #define GLIBTOP_FEATURES_NO_SERVER    4
  40. #define GLIBTOP_FEATURES_EXCEPT        8
  41.  
  42. #define GLIBTOP_METHOD_DIRECT        1
  43. #define GLIBTOP_METHOD_PIPE        2
  44. #define GLIBTOP_METHOD_INET        3
  45. #define GLIBTOP_METHOD_UNIX        4
  46.  
  47. #define GLIBTOP_ERROR_METHOD_IGNORE    0
  48. #define GLIBTOP_ERROR_METHOD_WARN_ONCE    1
  49. #define GLIBTOP_ERROR_METHOD_WARN    2
  50. #define GLIBTOP_ERROR_METHOD_ABORT    3
  51.  
  52. #define GLIBTOP_ERROR_METHOD_DEFAULT    GLIBTOP_ERROR_METHOD_WARN_ONCE
  53.  
  54. void
  55. glibtop_open_l (glibtop *server, const char *program_name,
  56.         const unsigned long features, const unsigned flags);
  57.  
  58. void
  59. glibtop_init_p (glibtop *server, const unsigned long features,
  60.         const unsigned flags);
  61.  
  62. void
  63. glibtop_open_p (glibtop *server, const char *program_name,
  64.         const unsigned long features, const unsigned flags);
  65.  
  66. void
  67. glibtop_open_s (glibtop *server, const char *program_name,
  68.         const unsigned long features, const unsigned flags);
  69.  
  70.  
  71. END_LIBGTOP_DECLS
  72.  
  73. #endif
  74.